 ################################################################################
 #    Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH    #
 #                                                                              #
 #              This software is distributed under the terms of the             # 
 #              GNU Lesser General Public Licence (LGPL) version 3,             #  
 #                  copied verbatim in the file "LICENSE"                       #
 ################################################################################
# Create a library called "libTutorial2" which includes the source files given in
# the array .
# The extension is already found.  Any number of sources could be listed here.

Set(INCLUDE_DIRECTORIES
  ${BASE_INCLUDE_DIRECTORIES}
  ${CMAKE_SOURCE_DIR}/examples/simulation/Tutorial2/src
  ${CMAKE_SOURCE_DIR}/examples/common/mcstack
  ${FairLogger_INCDIR}
)

Include_Directories(${INCLUDE_DIRECTORIES})
Include_Directories(SYSTEM ${SYSTEM_INCLUDE_DIRECTORIES})

Set(LINK_DIRECTORIES
  ${ROOT_LIBRARY_DIR}
) 

Link_Directories(${LINK_DIRECTORIES})

set(SRCS
  FairTutorialDet2.cxx
  FairTutorialDet2ContFact.cxx
  FairTutorialDet2Geo.cxx
  FairTutorialDet2GeoPar.cxx
  FairTutorialDet2Point.cxx
  FairTutorialDet2DigiPar.cxx
  FairTutorialDet2Digitizer.cxx
  FairTutorialDet2CustomTask.cxx
)

Set(HEADERS )
Set(LINKDEF Tutorial2LinkDef.h)
Set(LIBRARY_NAME Tutorial2)
Set(DEPENDENCIES MCStack Base)# GeoBase ParBase VMC Physics Core)

GENERATE_LIBRARY()
